package com.yq.bdm.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yq.bdm.dao.GroupInfoDao;
import com.yq.bdm.entity.GroupInfoEntity;
import com.yq.bdm.service.GroupInfoService;



@Service("groupInfoService")
public class GroupInfoServiceImpl implements GroupInfoService {
	@Autowired
	private GroupInfoDao groupInfoDao;
	
	@Override
	public GroupInfoEntity queryObject(Long id){
		return groupInfoDao.queryObject(id);
	}
	
	@Override
	public List<GroupInfoEntity> queryList(Map<String, Object> map){
		return groupInfoDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return groupInfoDao.queryTotal(map);
	}
	
	@Override
	public void save(GroupInfoEntity groupInfo){
		groupInfoDao.save(groupInfo);
	}
	
	@Override
	public void update(GroupInfoEntity groupInfo){
		groupInfoDao.update(groupInfo);
	}
	
	@Override
	public void delete(Long id){
		groupInfoDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		groupInfoDao.deleteBatch(ids);
	}
	
	@Override
	public void deleteBatchByGroupId(Long[] groupIds){
		groupInfoDao.deleteBatchByGroupId(groupIds);
	}
	
	@Override
	public GroupInfoEntity queryObjectByGroupId(Long groupId){
		return groupInfoDao.queryObjectByGroupId(groupId);
	}
}
